package com.shycloud.mido.basic.controller;

import com.shycloud.mido.basic.service.BasGradeOrganService;
import com.shycloud.mido.common.core.util.R;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  考级单位 前端控制器
 * @author yyy
 */
@RestController
@AllArgsConstructor
@RequestMapping("/gradeOrgan")
@Api(value = "gradeOrgan", description = "考级单位")
public class GradeOrganController {
	private final BasGradeOrganService basGradeOrganService;

	/**
	 * 查找考级单位
	 * @return 考级单位
	 */
	@GetMapping("/list")
	public R gradeOrgan() {
		return new R<>(basGradeOrganService.list());
	}
}
